package com.ruoyi.project.outpatient.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
public class Case extends BaseEntity {
    private Integer caseId;
    private Integer patientId;
    private Character receptionType;
    private String chiefComplaint;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date illnessDate;
    private String diagnosis;
    private Character isInfect;
    private String advise;
    private String doctorNotes;
    //每一个病例上应该有检查处方 和 药用处方的集合
}
